package com.avic.rong.activity.no;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.avic.rong.BaseActivity;
import com.avic.rong.R;
import com.avic.rong.activity.StandardServiceActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class StandardservicesActivity extends BaseActivity {

    @BindView(R.id.orange)
    TextView orange;
    @BindView(R.id.green)
    TextView green;
    @BindView(R.id.blue)
    TextView blue;
    @BindView(R.id.qing)
    TextView qing;
    @BindView(R.id.return_back)
    ImageView returnBack;
    @BindView(R.id.tou_layout)
    RelativeLayout touLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_standardservices);
        ButterKnife.bind(this);
    }

    @Override
    protected int getContentViewId() {
        return 0;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void addListener() {

    }

    @OnClick({R.id.orange, R.id.green, R.id.blue, R.id.qing,R.id.return_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.orange:
                int contid = 1485;
                goServiceIntent(contid);
                break;
            case R.id.green:
                int contid1 = 1110;
                goServiceIntent(contid1);
                break;
                case R.id.return_back:
            this.finish();
                break;
            case R.id.blue:
                int contid2 = 1111;
                goServiceIntent(contid2);
                break;
            case R.id.qing:
                int contid3 = 1112;
                goServiceIntent(contid3);
                break;
        }
    }

    private void goServiceIntent(int contid) {
        Intent intent = new Intent(StandardservicesActivity.this, StandardServiceActivity.class);
        intent.putExtra("contid", contid);
        startActivity(intent);
    }


}
